package com.yanmaohu.yulia.bean;

public final class AlterSequenceGeneratorRestartOption implements AlterIdentityColumnOption, AlterSequenceGeneratorOption {

    private final int beginIndex;
    private final int endIndex;
    private final SignedNumericLiteral sequenceGeneratorRestartValue;

    public AlterSequenceGeneratorRestartOption(int beginIndex, SignedNumericLiteral sequenceGeneratorRestartValue) {
        this.beginIndex = beginIndex;
        this.endIndex = sequenceGeneratorRestartValue.getEndIndex();
        this.sequenceGeneratorRestartValue = sequenceGeneratorRestartValue;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SignedNumericLiteral getSequenceGeneratorRestartValue() {
        return sequenceGeneratorRestartValue;
    }

}
